package ebcs.database.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import ebcs.database.bean.ProjectCostInfo;
import ebcs.database.bean.RpProjectMoneyBean;
import ebcs.database.bean.TbMessage;
import ebcs.database.bean.TbMessageDetail;
import ebcs.database.bean.TbMessageInfor;
import ebcs.database.bean.TbTemplate;
import ebcs.database.mybatis.dao.MessageMapper;
import ebcs.database.mybatis.dao.ProjectCostMapper;
import ebcs.database.service.MessageServiceImp;
import ebcs.database.service.ProjectCostServiceImp;

@Service
public class ProjectCostServiceImpl implements ProjectCostServiceImp{

	@Autowired
    private ProjectCostMapper projectCostMapper;

	@Override
	public void insertProjectCostInfos(List<ProjectCostInfo> projectCostInfos) {
		// TODO Auto-generated method stub
		projectCostMapper.insertProjectCostInfos(projectCostInfos);
	}

	@Override
	public List<ProjectCostInfo> searchProjectcostInfor(ProjectCostInfo record) {
		// TODO Auto-generated method stub
		return projectCostMapper.searchProjectcostInfor(record);
	}

	@Override
	public int deleteProjectCostByEmpId(String id) {
		// TODO Auto-generated method stub
		return projectCostMapper.deleteProjectCostByEmpId(id);
	}
	 
	@Override
	public int searchProjectCostPageCount(ProjectCostInfo req) {
		// TODO Auto-generated method stub
		return projectCostMapper.selectProjectCostPageCount(req);
	}

	@Override
	public List<ProjectCostInfo> searchProjectcost() {
		// TODO Auto-generated method stub
		return projectCostMapper.selectProjectcost();
	}

	@Override
	public List<ProjectCostInfo> selectUserInfo(ProjectCostInfo req) {
		// TODO Auto-generated method stub
		return projectCostMapper.selectUserInfo(req);
	}

	@Override
	public List<RpProjectMoneyBean> searchRewardFormInfor(RpProjectMoneyBean req) {
		// TODO Auto-generated method stub
		return projectCostMapper.searchRewardFormInfor(req);
	}

	@Override
	public int searchRewardFormInforPageCount(RpProjectMoneyBean req) {
		// TODO Auto-generated method stub
		return projectCostMapper.searchRewardFormInforPageCount(req);
	}

	@Override
	public void insertNeedInfos(List<RpProjectMoneyBean> list) {
		// TODO Auto-generated method stub
		projectCostMapper.insertNeedInfos(list);
	}

	@Override
	public int deleteRewardForm(RpProjectMoneyBean req) {
		// TODO Auto-generated method stub
		return projectCostMapper.deleteRewardForm(req);
	}

	@Override
	public List<RpProjectMoneyBean> searchRewardForm() {
		// TODO Auto-generated method stub
		return projectCostMapper.searchRewardForm();
	}
}
